package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "图片管理")
@Table(name = "tb_image")
public class Image {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("文件地址")
    private String url;
    @ApiModelProperty("类型")
    private String type;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("序号")
    private Integer sequence;
}
